﻿using Chaos;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;

[SerializeField]
public class SimpleMeshResLodPickUpData : ScriptableObject
{
    [SerializeField]
    /// <summary>配置名字</summary>
    public List<string> Name;
    [SerializeField]
    public List<bool> PickTexure;
    [SerializeField]
    public List<E_TexSize>  TexSize;
    [SerializeField]
    /// <summary>网格是原来的百分比</summary>
    public List<float> MeshPer;
    [SerializeField]
    /// <summary>资源lod等级</summary>
    public List<E_ResLod> ResLod;

    public SimpleMeshResLodPickUpData Clone()
    {
        SimpleMeshResLodPickUpData newD = ScriptableObject.CreateInstance<SimpleMeshResLodPickUpData>();
        newD.Name = Name;
        newD.PickTexure = PickTexure;
        newD.TexSize = TexSize;
        newD.MeshPer = MeshPer;
        newD.ResLod = ResLod;

        return newD;
    }
}

[SerializeField]
public enum E_TexSize
{
    S16,
    S32,
    S64,
    S128,
    S256,
    S512,
    S1024,
}

[SerializeField]
public enum E_ResLod
{
    Lod1 = 1,
    Lod2 = 2,
    Lod3 = 3,
    Lod4 = 4,
}
